<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>田园牧歌<?PHP if(isset($nav)) echo ' - '.$nav; ?></title>
<meta name="keywords" content="田园牧歌/有机/有机蔬菜/高端蔬菜" />
<meta name="description" content="田园牧歌/有机/有机蔬菜/高端蔬菜" />
<link rel="stylesheet" type="text/css" href="/misc/css/reset.css"  />
<link rel="stylesheet" type="text/css" href="/misc/css/btnicon.css"  />
<link rel="stylesheet" type="text/css" href="/misc/css/account.css"  />
<style type="text/css">
body{
background: url("/misc/images/home/centerbg.png") repeat-x scroll left top #E7F2E1;
min-height: 400px;
}
</style>
<script type="text/javascript" src="/misc/vendors/jquery/jquery_1.2.6.js"></script>
<script type="text/javascript" src="/misc/vendors/o2js/o2js.js"></script>
<script type="text/javascript" src="/misc/vendors/o2js/o2js_build.js"></script>
<script type="text/javascript" >
var baseUrl = "<?=$themeUrl?>";
var grids;
$().ready(function(){
	//showLoading();
	o2js.build('ymprompt');
	setInterval(fnInitCart,5000);
	fnInitCart();
});
/* 刷新购物车数量 */
function fnInitCart(){
	$.post(
		'/account_cart/loadcartnum',
		{
		},
		function(e){
			if(e && e>0){
				$('#message_a').find('span').html(e);
				$('#message_a').show();
			}else{
				$('#message_a').hide();
			}
		}
	);
}
</script>
</head>
<body>
<div class="top_bg">
	<div class="top_content">
		<div class="top_logo">
			<a href="/account/index" >田园牧歌</a>
		</div>
		<div class="top_menu">
			<ul class="top_nav">
				<li <?PHP if(isset($account_menu1) && $account_menu1=='1' ) echo 'class="now"';?> >
					<a href="/account_buy">选菜</a>
				</li>
				<li <?PHP if(isset($account_menu1) && $account_menu1=='2' ) echo 'class="now"';?>>
					<a href="/account_cart">购物车</a>
					<a href="/" class="message_a" id="message_a" >
						<span>1</span>
					</a>
				</li>
				<li <?PHP if(isset($account_menu1) && $account_menu1=='3' ) echo 'class="now"';?>>
					<a href="/account/index" title="{factory::module('member')->getname()}"><?PHP echo factory::module('member')->getname_short(); ?></a>
				</li>
				<li>
					<a href="/login/logout">退出</a>
				</li>
			</ul>
		</div>
	</div>
	<div class="clear"></div>
</div>
<div class="main_bg">
	<div style="height:1px;line-height:1px;background-color:#eee;"></div>